package com.liuym.common.exception;

import com.liuym.common.constants.ResponseCodeConstants;

/**
 * @author Liuym
 * @date 2019/1/21 9:25
 * @describe：
 */
public class LoginException extends ServiceException {
    public LoginException(int code, String msg) {
        super(code, msg);
    }

    public static LoginException internalServerError() {
        return new LoginException(ResponseCodeConstants.INTERNAL_SERVER_ERROR_CODE,
                ResponseCodeConstants.INTERNAL_SERVER_ERROR_MSG);
    }
}
